<?php
// Reference the Smarty class library.
//session_start();
function getSmarty()
{
    require_once("Smarty.class.php");
        // Create a new instance of the Smarty class.
    $smarty = new Smarty();
    $smarty->template_dir=$_SERVER['DOCUMENT_ROOT']."/RecJP/template_dir/";
    //$smarty->template_dir="e:/php5/Mywwwroot/RecJP/template_dir/";
    $smarty->compile_dir="/usr/local/lib/php/smarty/compile_dir/";
    $smarty->config_dir="/usr/local/lib/php/smarty/config_dir/";
    $smarty->cache_dir="/usr/local/lib/php/smarty/cache_dir/"; 
    return $smarty;
}

function getSmartyBC()
{
    require_once ("SmartyBC.class.php");
        // Create a new instance of the Smarty class.
    $smarty = new SmartyBC();
    $smarty->template_dir=$_SERVER['DOCUMENT_ROOT']."/RecJP/template_dir/";
    //$smarty->template_dir="e:/php5/Mywwwroot/RecJP/template_dir/";
    $smarty->compile_dir="/usr/local/lib/php/smarty/compile_dir/";
    $smarty->config_dir="/usr/local/lib/php/smarty/config_dir/";
    $smarty->cache_dir="/usr/local/lib/php/smarty/cache_dir/"; 
    return $smarty;
}